package com.example.service.impl;

import com.example.mapper.CourseMapper;
import com.example.entity.po.Course;
import com.example.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    private CourseMapper courseMapper;

    @Override
    public List<Course> queryCourse() {
        return courseMapper.queryCourse();
    }

    @Override
    public int updateCourse(Course course) {
        return courseMapper.updateCourse(course);
    }

    @Override
    public int deleteCourse(String classId) {
        return courseMapper.deleteCourse(classId);
    }

    @Override
    public int addCourse(Course course) {
        return courseMapper.addCourse(course);
    }

    @Override
    public List<Course> fuzzyCourse(String className) {
        return courseMapper.fuzzyCourse(className);
    }
}
